Add path prefix if working directory specified#34
Conversation
|
you are so fast! :-) Is it possible to test GitHub Actions by specifying a commit id instead of version? |
|
@SVilgelm, even without path-prefix, I think specifying an absolute path for That said, nothing to stop people from doing it! I think the path-prefix logic behaves reasonably in that scenario because it still prefers user override. relative path: ✅working-directory: A relative path is the most likely usage pattern imo, and it works exactly like you'd want (and what GH wants). absolute path, no explicit
|
|
@jwilner thank you for the explanation, I'm totally agree with you. |
iwankgb
left a comment
There was a problem hiding this comment.
I don't think we can do much more besides merging it.
|
@iwankgb it's great that you merged it, but It depends on the golangci/golangci-lint#1226 pull request, what is not merged yet and the action can fail with an error: |
|
I just merged golangci/golangci-lint#1226, but I don't think there is a way to point to golangci-lint master branch, so we need to wait for release as well ? |
|
Sorry, I have not realised it and have not read description carefully enough. Can any of you file a reverting PR, please? |
|
@jwilner no worries, that PR and a fix for that PR are already merged to master :) |
|
@SVilgelm what's the procedure for cutting a new release of golangci-lint? Seems like it'd just be a patch version. |
|
@jwilner I never did it, probably we need to ask @sayboras. But according to the documentation[1] we just need to create a new tag. [1] https://golangci-lint.run/contributing/workflow/#new-releases |
|
Beyond the tag some documentation must be generated |
Following up on #31 -- adds
--path-prefixifworking-directoryis specified.Worth noting that this PR and this option basically have a dependency on golangci/golangci-lint#1226